{
  "properties" : { },
  "id" : "ed665d42b012447ea106bac27b56410e",
  "script" : null,
  "groupId" : "bcdec4ef1ba74815bea2c09a20056b65",
  "name" : "单位",
  "createTime" : 1718810324940,
  "updateTime" : 1710949267955,
  "lock" : null,
  "createBy" : "管理员",
  "updateBy" : "管理员",
  "path" : "units",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ {
    "name" : "permission",
    "value" : "system:uhgl",
    "description" : "允许拥有该权限的访问",
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : null,
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import com.gitee.fastmybatis.core.query.Query;
import 'com.wiwf.model.mapper.admin.dao.SysUnitMapper' as sysUnitMapper;

var query = new Query();

return sysUnitMapper.listMap(["unit_id as value", "unit_name as label"], query);